package com.yayo.mangement.facade;

import com.yayo.mangement.info.GeneraterRequest;
import com.yayo.mangement.model.Table;
import com.yayo.mangement.model.TableField;
import com.yayo.mangement.paging.Paging;
import com.yayo.mangement.response.Response;

import java.util.List;

public interface GeneraterFacade {

    /**
     * 分页查询所有表名
     * @param pageNo
     * @param pageSize
     * @param tableName
     * @return
     */
    public Paging<Table> paging(Integer pageNo, Integer pageSize, String tableName);

    /**
     * 表字段详情查询
     * @param tableName
     * @return
     */
    public Response<List<TableField>> tableDetail(String tableName);

    /**
     * 自动生成代码
     * @param generaterRequest
     * @param userNickName
     * @return
     */
    public Response generater(GeneraterRequest generaterRequest, String userNickName);
}
